<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<link type="text/css" rel="stylesheet" href="<%=basePath%>statics/js/plug/jbox/jBox.css"/>
<script type="text/javascript" src="<%=basePath %>statics/js/plug/jquery.validate.js"></script>
<script type="text/javascript" src="<%=basePath%>/statics/js/plug/jbox/jBox.js"></script>
<script type="text/javascript" src="<%=basePath%>/statics/js/base/baseauthority/base_authority_edit.js"></script>
<div class="table_edit_div" style="display: block">
    <form id="updateForm">
        <input id="updateId" name="id" type="hidden" value="${baseAuthority.id}">
        <table class="advanced_table" cellpadding="0" cellspacing="0">
            <tr>
                <td class="attr"><span>名 &nbsp; &nbsp;称：</span></td>
                <td>
                    <input id="labelEdit" type="text" name="name"  value="${baseAuthority.name}">
                    <i class="required"></i>
                </td>
            </tr>
            <tr>
                <td class="attr"><span>标 &nbsp; &nbsp;识：</span></td>
                <td>
                    <input id="permissionEdit" type="text" name="permission" value="${baseAuthority.permission}">
                    <i class="required"></i>
                </td>
            </tr>
            
            <tr style="display: none;" >
                <td ><span >状 &nbsp; &nbsp;态</span></td>
                <td >
                    <input  id='state_one_Edit' name='status' type='radio' value="1"  ${baseAuthority.status == 1 ? "checked" : ""}><span>可用</span>&nbsp;
                    <input  id='state_two_Edit' name='status' type='radio' value="2" ${baseAuthority.status == 2 ? "checked" : ""}><span>不可用</span>
                </td>
            </tr>
            
            <tr>
                <td class="attr"><span>父节点 ：</span></td>
                <td>
                    <input id="authorityAddListEdit" type="text" name="authorityAddList" readonly="readonly" value="${baseAuthority.parentName}" >
                    <input id="parentIdEdit" name="parentId" type="hidden" value="${baseAuthority.parentId}" />
                    <i class="required"></i>
                </td>
            </tr>
            <tr>
				<td class="attr"><span>刷新缓存：</span></td>
				<td>
					<input class="radio" name='isRefreshCache' type='radio' checked="checked" value="0"><span>不刷新</span>
					<input class="radio" name='isRefreshCache' type='radio' value="1"><span>刷新</span>&nbsp;&nbsp;&nbsp;&nbsp;
				</td>
			</tr>
            <tr>
                <td class="attr"><span>备&nbsp;&nbsp;注：</span></td>
                <td height="100px">
                    <textarea id="remarkEdit" name="remark" style="width: 292px; height: 100px;">${baseAuthority.remark}</textarea>
                </td>
            </tr>
        </table>
        <div style="text-align:  -webkit-auto;margin-left: 20%;">
            <input type="submit" value="更新" style="margin-top: 20px;float: left;">
            <input type="button" value="取消" onclick="heavyLoad();" style="margin-top: 20px;margin-left: 30px;float: left;">
               <button id="deleteBtn" class="blur" onclick="deleteById();" type="button" style="margin-top: 20px;margin-left:30px;float: left;">删除</button>
            
        </div>
        
    </form>
</div>
